/// device_category_key : "ipc"
/// firmware_id : "bwl_ak_v200_002"
/// sdk_version : 215
/// firmware_version : "00020771"
/// attrs : {"os":"linux","category":"ipc","network":"wifi"}


/// 设备基础信息 - 数据格式
class DeviceBasicinfo {
  DeviceBasicinfo({
      this.deviceCategoryKey, 
      this.firmwareId, 
      this.sdkVersion, 
      this.firmwareVersion, 
      this.attrs,});

  DeviceBasicinfo.fromJson(dynamic json) {
    deviceCategoryKey = json['device_category_key'];
    firmwareId = json['firmware_id'];
    sdkVersion = json['sdk_version'];
    firmwareVersion = json['firmware_version'];
    attrs = json['attrs'] != null ? Attrs.fromJson(json['attrs']) : null;
  }
  String? deviceCategoryKey;
  String? firmwareId;
  num? sdkVersion;
  String? firmwareVersion;
  Attrs? attrs;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['device_category_key'] = deviceCategoryKey;
    map['firmware_id'] = firmwareId;
    map['sdk_version'] = sdkVersion;
    map['firmware_version'] = firmwareVersion;
    if (attrs != null) {
      map['attrs'] = attrs?.toJson();
    }
    return map;
  }

}

/// os : "linux"
/// category : "ipc"
/// network : "wifi"

class Attrs {
  Attrs({
      this.os, 
      this.category, 
      this.network,});

  Attrs.fromJson(dynamic json) {
    os = json['os'];
    category = json['category'];
    network = json['network'];
  }
  String? os;
  String? category;
  String? network;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['os'] = os;
    map['category'] = category;
    map['network'] = network;
    return map;
  }

}